package com.huya.mapper;

import com.huya.pojo.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdminMapper {

    /**
     * 根据用户名查询管理员信息
     * @param username
     * @return
     */
    @Select("SELECT * FROM admin WHERE username = #{username}")
    Admin getByUsername(String username);
}
